package com.example.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.security.config.annotation.web.builders.HttpSecurity;
import org.springframework.security.web.SecurityFilterChain;

/**
 * @Author huangpw
 * @Date 2024/11/22 17:56
 */
@Configuration
public class SecurityConfiguration {
    @Bean
    public SecurityFilterChain filterChain(HttpSecurity http) {
        //return http.authorizeHttpRequests(conf -> conf
        //        .requestMatchers("/api/auth/**", "/error").permitAll()
        //        .requestMatchers("/swagger-ui/**", "/v3/api-docs/**").permitAll()
        //        //.anyRequest().hasAnyRole()
        //)

    }
}
